|
Bush hid the facts is a common name for a bug present in some Microsoft Windows applications, which causes a file of text encoded in ASCII or its superset (such as in a Windows code page) to be interpreted as if it were UTF-16LE, resulting in mojibake. When "Bush hid the facts" (without newline or quotes) is put in a new (pre-Vista) Notepad document and saved, closed, and reopened, the nonsensical words "" () appear instead. While "Bush hid the facts" is the sentence most commonly presented on the Internet to induce the error, the bug can be triggered by many sentences with characters and spaces in a particular order so that the bytes match the UTF-16LE encoding of valid (if nonsensical) Chinese Unicode characters. Other popular strings are , (Portuguese for "Acre goes to Rede Globo"), and .〔(Bush Hid The Facts - Notepad Conspiracy Claim ) – Hoax-Slayer〕 The bug is triggered even by the text . The bug occurs when the string is passed to the Win32 charset detection function IsTextUnicode with no other characters. IsTextUnicode sees what it thinks is valid UTF-16LE Chinese and returns true, and the application then incorrectly interprets the text as UTF-16LE.Many text editors and tools exhibit this behavior because they use IsTextUnicode as well.== Discovery == The bug appeared for the first time in Windows NT 3.5, released 1994, but was not discovered until early 2004. Older versions of Notepad such as those that came with Windows 95, 98, ME, and NT 3.1 do not include Unicode support, so the bug does not occur there. The bug exists in all successive versions of Windows until and including Windows XP, but was not present in Windows Vista and afterwards. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Bush hid the facts」の詳細全文を読む スポンサード リンク
|